﻿using Swimj.CommonLib.Attributes;

namespace Production.CommonLib.Models
{
    public class ProductionResourceInfoResponseDto
    {
        public int Id { get; set; }

        /// <summary>
        /// 资源编码
        /// </summary>
        [TableColumn(DisplayText = "资源编码")]
        public string? Code { get; set; }

        /// <summary>
        /// 资源名称
        /// </summary>
        [TableColumn(DisplayText = "资源名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 是否资源组
        /// </summary>
        [TableColumn(DisplayText = "是否资源组")]
        public bool? IsResourceGroup { get; set; }

        /// <summary>
        /// 是否停用资源组
        /// </summary>
        [TableColumn(DisplayText = "是否停用资源组")]
        public bool? IsStopGroup { get; set; }

        /// <summary>
        /// 资源类别
        /// </summary>
        [TableColumn(DisplayText = "资源类别")]
        public int ResourceCategory { get; set; }

        /// <summary>
        /// 最大负荷
        /// </summary>
        [TableColumn(DisplayText = "最大负荷")]
        public decimal MaxLoad { get; set; }

        /// <summary>
        /// 流水线间隔
        /// </summary>
        [TableColumn(DisplayText = "流水线间隔")]
        public decimal PipelineInterval { get; set; }

        /// <summary>
        /// 空闲时间
        /// </summary>
        [TableColumn(DisplayText = "空闲时间")]
        public decimal IdleTime { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [TableColumn(DisplayText = "数量")]
        public decimal Quantity { get; set; }

        [TableColumn(DisplayText = "排序")] public int Sort { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }
    }
}